home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / nslint-1.5.1 / lbl / os-irix5.h < prev    next >
C/C++ Source or Header  |  1996-10-25  |  3KB  |  84 lines

  1. /*
  2.  * Copyright (c) 1994, 1995
  3.  *    The Regents of the University of California.  All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that: (1) source code distributions
  7.  * retain the above copyright notice and this paragraph in its entirety, (2)
  8.  * distributions including binary code include the above copyright notice and
  9.  * this paragraph in its entirety in the documentation or other materials
  10.  * provided with the distribution, and (3) all advertising materials mentioning
  11.  * features or use of this software display the following acknowledgement:
  12.  * ``This product includes software developed by the University of California,
  13.  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  14.  * the University nor the names of its contributors may be used to endorse
  15.  * or promote products derived from this software without specific prior
  16.  * written permission.
  17.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  18.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  19.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  * @(#) $Header: /proj/src/isc/cvs-1/bind/contrib/nslint-1.5.1/lbl/os-irix5.h,v 1.1 1996/10/25 17:13:42 vixie Exp $ (LBL)
  22.  */
  23.  
  24. #define SIGRET void
  25. #define SIGRETVAL
  26. #define WAITSTATUS int
  27.  
  28. #define    bcopy(s, d, n)    memcpy(d, s, n)
  29. #define major(x)    ((int)(((unsigned)(x)>>8)&0377))
  30. #define minor(x)    ((int)((x)&0377))
  31. #define    bzero(s, n)    memset(s, 0, n)
  32. #define    bcmp(s1, s2, n)    memcmp(s1, s2, n)
  33. #define setlinebuf(f)    setvbuf(f, NULL, _IOLBF, 0)
  34.  
  35. /* Signal compat */
  36. #ifndef _BSD_SIGNALS
  37. #define sigmask(m)    (1 << ((m)-1))
  38. #define signal(s, f)    sigset(s, f)
  39. #endif
  40.  
  41. /* Prototypes missing in IRIX 5 */
  42. #ifdef __STDC__
  43. struct    ether_addr;
  44. #endif
  45. int    ether_hostton(char *, struct ether_addr *);
  46. char    *ether_ntoa(struct ether_addr *);
  47. #ifdef __STDC__
  48. struct    utmp;
  49. #endif
  50. void    login(struct utmp *);
  51. int    setenv(const char *, const char *, int);
  52. int    sigblock(int);
  53. int    sigsetmask(int);
  54. int    snprintf(char *, size_t, const char *, ...);
  55. time_t    time(time_t *);
  56.  
  57. #ifndef ETHERTYPE_REVARP
  58. #define ETHERTYPE_REVARP 0x8035
  59. #endif
  60.  
  61. #ifndef    IPPROTO_ND
  62. /* From <netinet/in.h> on a Sun somewhere. */
  63. #define    IPPROTO_ND    77
  64. #endif
  65.  
  66. #ifndef REVARP_REQUEST
  67. #define REVARP_REQUEST 3
  68. #endif
  69. #ifndef REVARP_REPLY
  70. #define REVARP_REPLY 4
  71. #endif
  72.  
  73. #ifndef ETHERTYPE_TRAIL
  74. #define ETHERTYPE_TRAIL 0x1000
  75. #endif
  76.  
  77. /* newish RIP commands */
  78. #ifndef    RIPCMD_POLL
  79. #define    RIPCMD_POLL 5
  80. #endif
  81. #ifndef    RIPCMD_POLLENTRY
  82. #define    RIPCMD_POLLENTRY 6
  83. #endif
  84.